import { createContext, useContext } from "react";
import type { FormInstance } from "antd";

export const questionContext = createContext<FormInstance | null>(null)
export const Provider = questionContext.Provider

export const useQuestionForm = () => useContext(questionContext)

